﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.OracleClient;

using System.Text;

namespace DotNETX.Authentication.Db.Oracle
{
    public static class ConnectionUtils
    {

        public static IDbConnection CreateOracleConnection(string datasource, string uid, string pwd)
        {
            return new OracleConnection(string.Format("Data Source={0};User ID={1};Password={2}", datasource, uid, pwd));
        }

        public static IDbConnection CreateOracleConnection(string connectionString)
        {
            return new OracleConnection(connectionString);
        }
    }
}
